package com.ld.security.server.user.modules.dsp.entity;

import com.ld.security.common.mybatis.anno.LabelKeys;
import com.ld.security.common.mybatis.base.entity.*;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;


import com.ld.security.server.user.modules.dsp.constant.DspAdvertConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.core.base.column.*;
import com.ld.security.common.mybatis.constant.SqlCondition;

@TableName("dsp_advert")
@ApiModel("广告")
@Data
public class DspAdvertEntity  extends SuperEntity implements LabelMap
{

  @ApiModelProperty("创建人")
  @SqlKey(SqlCondition.eq)
  private String crtUser;


  @ApiModelProperty("内容")

  private String content;




  @ApiModelProperty("封面")

  private String picture;




  @ApiModelProperty("标题")
  @SqlKey(SqlCondition.like)
  private String label;




  @ApiModelProperty("链接地址")
  @SqlKey(SqlCondition.like)
  private String linkUrl;

  @LabelKeys(value = DspSpaceEntity.class)
  @ApiModelProperty("广告位编号")
  @SqlKey(SqlCondition.eq)
  private String spaceId;


  @LabelKeys
  @ApiModelProperty("广告状态")
  @SqlKey(SqlCondition.eq)
  private DspAdvertConstant.advertStatus advertStatus;

  private MapJson labelMap;
}
